/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pig.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 广告账户表
 *
 * @author pigx code generator
 * @date 2021-05-31 10:53:49
 */
@Data
@TableName("ad_account")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "广告账户表")
public class AdAccount extends Model<AdAccount> {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键")
	private Integer id;
	/**
	 * 媒体编码
	 */
	@ApiModelProperty(value = "媒体编码")
	private String mediaCode;
	/**
	 * 媒体名称
	 */
	@ApiModelProperty(value = "媒体名称")
	private String mediaName;
	/**
	 * 广告账户ID
	 */
	@ApiModelProperty(value = "广告账户ID")
	private String advertiserId;
	/**
	 * 广告账户名称
	 */
	@ApiModelProperty(value = "广告账户名称")
	private String advertiserName;
	/**
	 * 管家账户
	 */
	@ApiModelProperty(value = "管家账户")
	private String housekeeper;
	/**
	 * 投放人
	 */
	@ApiModelProperty(value = "投放人ID")
	private String throwUser;

	@TableField(exist = false)
	@ApiModelProperty(value = "投放人名称")
	private String throwUserName;

	/**
	 * 删除状态：0正常，1删除
	 */
	@ApiModelProperty(value = "删除状态：0正常，1删除")
	@TableLogic
	private Integer isDelete;

	/**
	 * 有效状态：1生效，2失效
	 */
	@ApiModelProperty(value = "有效状态：1生效，2失效")
	private Integer effectiveStatus;
	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人")
	private String createUser;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**
	 * 修改人
	 */
	@ApiModelProperty(value = "修改人")
	private String updateUser;
	/**
	 * 修改时间
	 */
	@ApiModelProperty(value = "修改时间")
	private Date updateTime;


	/**
	 * 母账号字段 0 不是 母账号字段  1是母账号字段
	 */
	@ApiModelProperty(value = "是否为母包账号")
	private Integer is_paccount;


}
